﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">

    @Html.Partial("_Login")
    <div class="layui-side layui-side-menu layui-bg-black">
        <div class="layui-side-scroll" id="zyl-nav">

            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            @Html.Partial("_Nav")

        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;height: 100%;box-sizing: border-box;-webkit-box-sizing: border-box;">
            @RenderBody()
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        <p>&copy; @DateTime.Now.2020 - My ASP.NET Application</p>
    </div>
</div>
<script src="../../layui/layui.js"></script>
<script>
//JavaScript代码区域
layui.config({
				base: '../../static/js/'
				,version: '101100'
			}).extend({ //设定模块别名
				navtab: 'navtab'
			});
layui.use(['element','layer','laytpl','jquery'], function(){
  var element = layui.element;
  var layer = layui.layer;
  var laytpl = layui.laytpl;
  var $ = layui.jquery;

  
  element.on('nav(test)', function(elem){
        console.log(elem);
        layer.msg(elem.text());
        console.log(elem.attr('lay-id'));
        //console.log(JSON.stringify(layui.url().hash.path));
       //location.hash = elem.attr('lay-href');
       $('iframe').attr('src',elem.attr('lay-href'))
  });
    
    
});
</script>

</body>
</html>